(forward_to_next_line_start): Return 0 when reaching the
authorGerd Moellmann <gerd@gnu.org>
Fri, 9 Aug 2002 17:29:11 +0000 (17:29 +0000)
committerGerd Moellmann <gerd@gnu.org>
Fri, 9 Aug 2002 17:29:11 +0000 (17:29 +0000)
end of the buffer.

src/xdisp.c

index 783a1b9423f616dcce053b4e6de3343be7c38939..ba7bfad414c3f3976519621a8c275863c60efd50 100644 (file)
@@ -3869,7 +3869,7 @@ forward_to_next_line_start (it, skipped_p)
        n += STRINGP (it->string) ? 0 : 1)
     {
       if (!get_next_display_element (it))
-       break;
+       return 0;
       newline_found_p = it->what == IT_CHARACTER && it->c == '\n';
       set_iterator_to_next (it, 0);
     }